import request from '@/utils/request';

export function listBulletin(query) {
  return request({
    url: '/main/bulletin/list',
    method: 'get',
    params: query
  });
}

export function addBulletin(data) {
  return request({
    url: '/main/bulletin/add',
    method: 'post',
    data: data
  })
}

export function editBulletin(data) {
  return request({
    url: '/main/bulletin/edit',
    method: 'put',
    data: data
  })
}

export function removeBulletin(id) {
  return request({
    url: '/main/bulletin/remove/'+id,
    method: 'delete'
  })
}
